class TFMMAttachment extends xWeaponAttachment;

var TFMMMuzRings ForceRing3rd;

simulated function Destroyed()
{
    if (ForceRing3rd != None)
        ForceRing3rd.Destroy();

    Super.Destroyed();
}

simulated event ThirdPersonEffects()
{
    if ( Level.NetMode != NM_DedicatedServer && FlashCount > 0 )
	{
        if ( FiringMode == 0 )
        {
            if (ForceRing3rd == None)
            {
                ForceRing3rd = Spawn(class'TaskForces.TFMMMuzRings');
                AttachToBone(ForceRing3rd, 'tip');
            }

            ForceRing3rd.bOnlyOwnerSee=false;
            //ForceRing3rd.mGrowthRate=60*(1+tfmmfire(litweapon.FireMode[0]).scale*2);
            //ForceRing3rd.mSpeedRange[1]=120*(1+tfmmfire(litweapon.FireMode[0]).scale);
            //ForceRing3rd.mRegenRange[1] = 12*(1+tfmmfire(litweapon.FireMode[0]).scale*3);
            ForceRing3rd.trigger(litweapon, instigator);
        }
    }

    Super.ThirdPersonEffects();
}

defaultproperties
{
     bHeavy=True
     Mesh=SkeletalMesh'Weapons.ShieldGun_3rd'
     DrawScale=0.500000
     DrawScale3D=(X=1.100000,Y=1.200000,Z=1.100000)
     Skins(0)=Texture'TFMedia.Marksman.MMTex0'
}
